<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>新增收藏</title>
    <link rel="stylesheet" href="../static/lib/layui/css/layui.css">
    <link rel="stylesheet" href="../static/css/base/base.css">
    <link rel="stylesheet" href="../static/css/components/collect-add.css">
    <link rel="stylesheet" href="../static/css/components/tea.css">
</head>

<body>
    <form class="layui-form index-form" action="">
        <div class="layui-form-item">
            <div class="layui-input-block open-right exclude fl">
                <input type="text" class="layui-input teainput fl" id="date2" placeholder="开始时间">
                <span class="to">至</span>
                <input type="text" class="layui-input teainput fl" id="date3" placeholder="结束时间">
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-input-block tea-protect expro">
                <button class="layui-btn protect" lay-submit lay-filter="formDemo">确定</button>
            </div>
        </div>
    </form>


    <script src="../static/lib/layui/layui.all.js"></script>
    <script src="../static/js/jquery.min.js"></script>
    <script src="../static/js/base.js"></script>
    <script>
        ; !function () {
            //无需再执行layui.use()方法加载模块，直接使用即可
            var form = layui.form
                , layer = layui.layer;

            var laydate = layui.laydate;
            laydate.render({
                elem: '#date2'
                , type: 'date'
            });
            laydate.render({
                elem: '#date3'
                , type: 'date'
            });
        }();
    </script>

</body>

</html>